package myhttp

import (
	"net/http"
	_ "net/http/pprof"
)

func PprofDemo() {
	server := http.Server{Addr: ":8888"}

	http.HandleFunc("/", f1)

	server.ListenAndServe()
}

func f1(writer http.ResponseWriter, request *http.Request) {
	writer.Header().Set("Version", "3.0.0")
	writer.Write([]byte("aaaaaa"))
}
